package org.acb.sgp.controller.impl;

import java.util.List;
import org.acb.sgp.beans.Programa;
import org.acb.sgp.controller.ProgramaController;
import org.acb.sgp.service.DataAccessService;
import org.acb.sgp.service.impl.DataAccessServiceImpl;

public class ProgramaControllerImpl implements ProgramaController {

    private final DataAccessService dataAccessService = new DataAccessServiceImpl();

    @Override
    public void registrarPrograma(Programa programa) {
        dataAccessService.registrarPrograma(programa);
    }

    @Override
    public void eliminarPrograma(Programa programa) {
        dataAccessService.eliminarPrograma(programa);
    }

    @Override
    public Programa buscarProgramaPorCodigo(Integer codPrograma) {
        return dataAccessService.buscarProgramaPorCodigo(codPrograma);
    }

    @Override
    public List<Programa> listaProgramas() {
        return dataAccessService.listaProgramas();
    }

}
